import createPersistedState from "vuex-persistedstate"; // 数据持久化
import { localStorage } from 'mp-storage' // Storage垫片，用于在各个小程序平台实现 localStorage、sessionStorage

const plugins = [];

// 缓存指定存储方式
plugins.push(createPersistedState({ paths: ["user", "company"], storage: localStorage }));

export default plugins;
